home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / vidhandl / install.bat < prev    next >
DOS Batch File  |  1999-02-03  |  2KB  |  44 lines

  1. @echo=off
  2. if not exist %1\bin\tlib.exe goto error
  3. echo Usage: INSTALL (TC/TC++ path)
  4. echo  
  5. echo INSTALL.BAT will copy the following files in the following directories:
  6. echo CRT.H to %1\INCLUDE
  7. echo VIDEOHLP.TXT to %1\DOC
  8. echo and will also install VIDEO HANDLING FUNCTIONS in TC RTL libraries at %1\LIB
  9. echo  
  10. echo If everything is OK, hit "y" to continue.
  11. echo If the paths above are incorrect or if you wish to make a safe backup
  12. echo of your RTL libraries, hit "n" or "ESC" to exit.
  13. echo For more information read README.1ST.
  14. choice /n /c:yn
  15. if errorlevel 2 goto end
  16. echo Installing functions in RTL libraries in
  17. echo small, medium, compact, large and huge memory models
  18. %1\bin\tlib %1\lib\cs.lib + lib\videos.lib
  19. %1\bin\tlib %1\lib\cm.lib + lib\videom.lib
  20. %1\bin\tlib %1\lib\cc.lib + lib\videoc.lib
  21. %1\bin\tlib %1\lib\cl.lib + lib\videol.lib
  22. %1\bin\tlib %1\lib\ch.lib + lib\videoh.lib
  23. echo Removing unecessary backup files created by TLIB
  24. del %1\lib\cc.bak
  25. del %1\lib\cs.bak
  26. del %1\lib\cm.bak
  27. del %1\lib\cl.bak
  28. del %1\lib\ch.bak
  29. echo Copying header file CRT.H 
  30. copy include\crt.h %1\include
  31. echo Copying help file VIDEOHLP.TXT
  32. copy doc\videohlp.txt %1\doc
  33. echo  
  34. echo Installation complete. Read README.1ST file for information.
  35. goto end
  36. :error
  37. echo  
  38. echo ERROR: %1\BIN\TLIB.EXE not found.
  39. echo This problably has happened because you gave wrong path of TC or because
  40. echo your C/C++ compiler is not Turbo C/C++. (in this case edit this batch file)
  41. echo For more information read README.1ST.
  42. :end
  43. @echo=on
  44.